{include file="`$CMS_TPL_DIR`filemanager/tab_menu.tpl" mode="filedetails"}

<div style="margin:8px;text-align:left;">
{if $filedetails != ""} 

	Dateiname: {$filedetails.filename|htmlentities} <br />
	<div style="float:left;width:200px;">
	{$smarty.config.FileManager_label_size}: {$filedetails.size} <br />

		{if $filedetails.type=="image"}
			{$smarty.config.FileManager_label_imagesize}: {$filedetails.img_width} x {$filedetails.img_height}<br />
			<a href="img_cache.php?file={$CMS_MEDIA_WEB}{$dir}{$filedetails.filename}&x={$filedetails.img_width}&y={$filedetails.img_height}" target="_blank">{$smarty.config.FileManager_label_original_imagesize}</a>
		{else}
			<a href="{$CMS_MEDIA_WEB}{$dir}{$filedetails.filename}" target="_blank">{$smarty.config.FileManager_download_file}</a>
		{/if}
		<br />
		
		mtime: {$filedetails.stat.mtime|date_format:"%d.%m.%Y %H:%M"}<br />
		atime: {$filedetails.stat.atime|date_format:"%d.%m.%Y %H:%M"}<br />
		ctime: {$filedetails.stat.ctime|date_format:"%d.%m.%Y %H:%M"}<br />
		
		{strip}<a href="javascript:void(0);" onclick="{literal}ConfirmWin('<br><div style=\'text-align:center\'>{/literal}{$smarty.config.FileManager_confirm_delete}{literal}</div><br />',function() {FileManagerFileDelete('{/literal}{$dir}','{$filedetails.filename}{literal}');return true;});{/literal}{/strip}">{$smarty.config.FileManager_delete_file}</a>
	
		<br />
		<br />
		<br />
		<a href="javascript:void(0);" onclick="FileManagerReturnFile('{$dir}','{$filedetails.filename}');">{$smarty.config.FileManager_choose_file}</a>
	
	</div>
	<div style="float:right;">
		{if $filedetails.type=="image"}
			{resize_img src="`$CMS_MEDIA_WEB``$dir``$filedetails.filename`" width="270" height="270" alt="`$filedetails.filename`" stretch="0" quality="60"}<br />
		{/if}
	</div>
{else}

	{$smarty.config.FileManager_file_error}<br />
	{$dir}{$file}
	

{/if}


<br style="clear:both;" />
</div>